﻿using System;
using System.Collections.Generic;
using System.Text;
using QidorSpider.Plan ;
using Xajhzwb.Components.Util;

namespace Xajhzwb.Components.Listener
{
    public class ListenInitializedEventArgs : EventArgs
    {
        public ListenInitializedEventArgs()
        {
        }

        public ListenInitializedEventArgs(Const.MessageType MessType)
        {
            m_MessType = MessType;
        }

        private Const.MessageType m_MessType;
        public Const.MessageType MessType
        {
            get { return m_MessType; }
            set { m_MessType = value; }
        }
    }

    public class CommandEventArgs : ListenInitializedEventArgs
    {
        public CommandEventArgs(Const.MessageType MessType)
        {
            base.MessType = MessType;
        }
    }

    public class RunTaskEventArgs : ListenInitializedEventArgs
    {
        public RunTaskEventArgs(Const.MessageType MessType, string RunName, string RunPara)
        {
            base.MessType = MessType;
            m_RunName = RunName;
            m_RunPara = RunPara;
        }

        private string m_RunName;
        public string RunName
        {
            get { return m_RunName; }
            set { m_RunName = value; }
        }

        private string m_RunPara;
        public string RunPara
        {
            get { return m_RunPara; }
            set { m_RunPara = value; }
        }
    }

    public class AddRunTaskEventArgs : EventArgs
    {
        public AddRunTaskEventArgs()
        {
        }

        public AddRunTaskEventArgs(cTaskPlan RTask)
        {
            m_RunTask = RTask;
        }

        private cTaskPlan m_RunTask;
        public cTaskPlan RunTask
        {
            get { return m_RunTask; }
            set { m_RunTask = value; }
        }
    }

    public class ListenErrorEventArgs : EventArgs
    {
        public ListenErrorEventArgs()
        {
        }

        public ListenErrorEventArgs(string Mess)
        {
            m_Message = Mess;
        }

        private string m_Message;
        public string Message
        {
            get { return m_Message; }
            set { m_Message = value; }
        }

    }

}
